package com.base.interview.devtest.repository;

import com.base.interview.devtest.entity.UserFollowerEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface UserFollowerRepository extends PagingAndSortingRepository<UserFollowerEntity, Long>, JpaSpecificationExecutor<UserFollowerEntity> {
    UserFollowerEntity getByUserIdAndAndFollowedUserId(Long userId, Long followedUserId);

    List<UserFollowerEntity> getByUserId(Long userId);

    List<UserFollowerEntity> getByFollowedUserId(Long followedUserId);
}
